Component({
    properties: {
        status: {
            value: "1",
            type: String
        },
        show: {
            value: !1,
            type: Boolean
        },
        goodsInfo: {
            value: {},
            type: Object
        }
    },
    data: {
        language: {},
        getMarketPrice: "",
        timeData: {},
        goodsInfo: {
            thumb_url: [ "https://img.yzcdn.cn/upload_files/2020/03/31/Fh0JRCgClmgcMRaD9elw3ZgJDN-2.jpg", "https://img.yzcdn.cn/upload_files/2020/03/31/FhaAiL_aSqAQBkZfQa1ogFI7z3NF.jpg" ]
        }
    },
    lifetimes: {
        ready: function() {
            var t = this;
            try {
                wx.getStorage({
                    key: "langIndex",
                    success: function(a) {
                        console.log(a.data, 888), t.setData({
                            language: a.data.en
                        });
                    }
                }), wx.getStorage({
                    key: "yz_basic_info",
                    success: function(a) {
                        t.setData({
                            getMarketPrice: a.data.lang.goods.market_price,
                            getprice: a.data.lang.goods.price
                        });
                    }
                });
            } catch (t) {
                console.log(t);
            }
        }
    },
    methods: {
        popupSpecsbtn: function(t) {
            console.log(t), this.setData({
                show: !1
            });
        },
        onChangeTime: function(t) {
            this.setData({
                timeData: t.detail
            });
        },
        addCart: function() {
            this.triggerEvent("addCart", this.data.goodsInfo);
        }
    }
});